//
//  XRMaskView.m
//  XRmenu
//
//  Created by loufq on 11-11-23.
//  Copyright 2011年 foxhis. All rights reserved.
//

#import "XRMaskView.h"


@implementation XRMaskView

+(id)createWithWrapperView:(UIView*)parentView contentView:(UIView*)aContentView
{
	return [[[ self alloc] initWithWrapperView:parentView contentView:aContentView] autorelease];
}
-(id)initWithWrapperView:(UIView*)parentView contentView:(UIView*)aContentView
{
	CGRect f = CGRectMake(parentView.bounds.origin.x, parentView.bounds.origin.y, parentView.bounds.size.width, parentView.bounds.size.height);
	self = [super initWithFrame:f];
	if (self) {
		[self addSubview:aContentView];
		self.alpha = 0.99;
		[parentView addSubview:self];
		self.tag = aContentView.tag;
        [self fadeIn:0.1f delegate:nil];
	}
	return self;
}
@end
